package org.ali.structuralpattern.decoratorpattern.decorator;

import org.ali.structuralpattern.decoratorpattern.shape.Shape;

/**
 * 装饰器
 */
public class ShapeRedDecorator extends ShapeDecorator {
    public ShapeRedDecorator(Shape shape) {
        super(shape);
    }

    @Override
    void paint() {
        System.out.println("涂上红色");
    }
}
